home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue43 / comcorn / MainForm.pas < prev   
Encoding:
Pascal/Delphi Source File  |  1999-02-12  |  646 b   |  39 lines

  1. unit MainForm;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls, Menus;
  8.  
  9. type
  10.   TFormMain = class(TForm)
  11.     Memo: TMemo;
  12.     MainMenu: TMainMenu;
  13.     File1: TMenuItem;
  14.     Save1: TMenuItem;
  15.     ColorDialog: TColorDialog;
  16.     procedure Save1Click(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   FormMain: TFormMain;
  25.  
  26. implementation
  27.  
  28. uses AxCtrls;
  29.  
  30. {$R *.DFM}
  31.  
  32. procedure TFormMain.Save1Click(Sender: TObject);
  33. begin
  34.   if ColorDialog.Execute then
  35.     Memo.Color := ColorDialog.Color;
  36. end;
  37.  
  38. end.
  39.